<?php
/**
 * Created by PhpStorm.
 * User: Plutoer
 * Date: 2019/1/27
 * Time: 21:26
 * @module {name}
 */


//定时器
swoole_timer_tick(2000, function ($timer_id) {
    echo "tick-2000ms" . date('Y-m-d H:i:s') . "\n";
});

swoole_timer_after(3000, function () {
    echo "after 3000ms" . date("Y-m-d H:i:s") . "\n";
});

//